﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Cherry.Agile.Framework;
using Cherry.Agile.Globalization;

namespace Cherry.Agile.Web
{
    /// <summary>
    /// 资源处理
    /// </summary>
    public static class Resource
    {
        /// <summary>
        /// 获取多语言
        /// </summary>
        /// <param name="key">语言项对应的Key</param>
        /// <returns>翻译结果</returns>
        public static string GetString(string key)
        {
            return RS.GetString(key);
        }
        public static string GetString(string key, params string[] l)
        {
            string r = RS.GetString(key);
            foreach (var k in l)
            {
                r += RS.GetString(k);
            }
            return r;
        }
        public static string GetStringColon(string key)
        {
            return GetString(key) + GetString("Agile_Colon");
        }
    }
}